#include<bits/stdc++.h>
#define rnd() abs((int)_rnd())
using namespace std;
inline int read(){
	int x=0;bool f=0;char ch=getchar();
	while(ch<'0'||ch>'9')f^=(ch=='-'),ch=getchar();
	while('0'<=ch&&ch<='9')x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
	return f?-x:x;
}
int n=3000,m=3000;
mt19937 _rnd(time(0));
int main(){
	freopen("star.in","w",stdout);
	printf("%d %d\n",n,m);
	for(int i=1;i<=n;i++){
		for(int j=1;j<=m;j++)putchar('a');
		puts("");
	}
	return 0;
}

